﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default/MasterPageCorrect.master" AutoEventWireup="true" Inherits="_Default" Codebehind="Default.aspx.cs" %>

<%@ Register src="UserControls/VerticalMenu.ascx" tagname="VerticalMenu" tagprefix="uc1" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentCustomeControlsPlaceHolder" Runat="Server">
    <p>
        <asp:DataList ID="dlstProducts" runat="server" BackColor="LightGoldenrodYellow" 
            BorderColor="Tan" BorderWidth="1px" CellPadding="2" 
            DataKeyField="ProductID" ForeColor="Black" Width="100%" RepeatColumns="2">
            <FooterStyle BackColor="Tan" />
            <AlternatingItemStyle BackColor="PaleGoldenrod" />
            <SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <ItemTemplate>
                <br />
                <table align="center" style="width: 195px">
                    <tr>
                        <td align="center">
                            &nbsp;<asp:Label ID="ProductNameLabel" runat="server" 
                                Text='<%# Eval("ProductName") %>' 
                                style="font-size: medium; color: #0066FF; font-weight: bold" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Image ID="Image1" runat="server" Height="150px" 
                                ImageUrl='<%# "~/Default/Imagesproduct/"+ Eval("ProductImage") %>' Width="150px" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <strong>
                            <asp:Label ID="PriceLabel" runat="server" style="color: #FF3300" 
                                Text='<%# Eval("Price") %>' />
                            </strong><span style="color: #FF3300"><strong>$</strong></span><br />
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl='<%# "ViewDetails.aspx?ProductID=" + Eval("ProductID") %>' 
                                style="color: #003300">ViewDetails</asp:HyperLink>
                        </td>
                    </tr>
                </table>
                <br />
            </ItemTemplate>
        </asp:DataList>
    </p>
    <table align="center">
        <tr>
            <td align="right">
                <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="False" 
                    onclick="lbtnFirst_Click">First</asp:LinkButton>
                <asp:LinkButton ID="lbtnPrev" runat="server" onclick="lbtnPrev_Click">Prev</asp:LinkButton>
            </td>
            <td align="center">
                <asp:DataList ID="dlPaging" runat="server" onitemcommand="dlPaging_ItemCommand" 
                    onitemdatabound="dlPaging_ItemDataBound" RepeatDirection="Horizontal">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnPaging" runat="server" 
                            CommandArgument='<%# Eval("PageIndex") %>' Text='<%# Eval("PageText") %>' 
                            CommandName="Paging"></asp:LinkButton>
                    </ItemTemplate>
                </asp:DataList>
            </td>
            <td>
                <asp:LinkButton ID="lbtnNext" runat="server" onclick="lbtnNext_Click" 
                    CausesValidation="False">Next</asp:LinkButton>
                <asp:LinkButton ID="lbtnLast" runat="server" onclick="lbtnLast_Click">Last</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FooterPlaceHolder" Runat="Server">
</asp:Content>

<asp:Content ID="Content6" runat="server" contentplaceholderid="LeftColumn">

                                    <uc1:VerticalMenu ID="VerticalMenu1" runat="server" />
                                
</asp:Content>

